package offer;

import binaryTree.basic.TreeNode;

import javax.swing.*;

public class Offer27 {

    public TreeNode mirrorTree(TreeNode root) {
        if(root==null){
            return root;
        }
        TreeNode tmp = root.left;
        root.left = mirrorTree(root.right);
        root.right = mirrorTree(tmp);
        return  root;
    }

    public static void main(String[] args) {
        Offer27 offer27 = new Offer27();
//        offer27.mirrorTree()


    }

}
